package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @author WeiZiDong
 */
@Table(name = "`sys_user`")
@Data
@ApiModel("用户表")
public class SysUser implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "主键id", example = "String")
    private String id;
    @Column(name = "`username`")
    @ApiModelProperty(value = "登录账号", example = "String")
    private String username;
    @Column(name = "`realname`")
    @ApiModelProperty(value = "真实姓名", example = "String")
    private String realname;
    @Column(name = "`password`")
    @ApiModelProperty(value = "密码", example = "String")
    private String password;
    @Column(name = "`salt`")
    @ApiModelProperty(value = "md5密码盐", example = "String")
    private String salt;
    @Column(name = "`avatar`")
    @ApiModelProperty(value = "头像", example = "String")
    private String avatar;
    @Column(name = "`birthday`")
    @ApiModelProperty(value = "生日", example = "2019-05-05 17:55:31")
    private Date birthday;
    @Column(name = "`sex`")
    @ApiModelProperty(value = "性别(0-默认未知,1-男,2-女)", example = "1")
    private Byte sex;
    @Column(name = "`email`")
    @ApiModelProperty(value = "电子邮件", example = "String")
    private String email;
    @Column(name = "`phone`")
    @ApiModelProperty(value = "电话", example = "String")
    private String phone;
    @Column(name = "`org_code`")
    @ApiModelProperty(value = "机构编码", example = "String")
    private String orgCode;
    @Column(name = "`status`")
    @ApiModelProperty(value = "性别(1-正常,2-冻结)", example = "1")
    private Byte status;
    @Column(name = "`del_flag`")
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)", example = "1")
    private Byte delFlag;
    @Column(name = "`third_id`")
    @ApiModelProperty(value = "第三方登录的唯一标识", example = "String")
    private String thirdId;
    @Column(name = "`third_type`")
    @ApiModelProperty(value = "第三方类型", example = "String")
    private String thirdType;
    @Column(name = "`activiti_sync`")
    @ApiModelProperty(value = "同步工作流引擎(1-同步,0-不同步)", example = "1")
    private Byte activitiSync;
    @Column(name = "`work_no`")
    @ApiModelProperty(value = "工号，唯一键", example = "String")
    private String workNo;
    @Column(name = "`post`")
    @ApiModelProperty(value = "职务，关联职务表", example = "String")
    private String post;
    @Column(name = "`telephone`")
    @ApiModelProperty(value = "座机号", example = "String")
    private String telephone;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;
    @Column(name = "`user_identity`")
    @ApiModelProperty(value = "身份（1普通成员2上级）", example = "1")
    private Byte userIdentity;
    @Column(name = "`depart_ids`")
    @ApiModelProperty(value = "负责部门", example = "默认值")
    private String departIds;

    private static final long serialVersionUID = 1L;
}
